package service;

import dao.DBConnection;
import dao.UserDao;

public class UserService {
    public static boolean logined(String name, String password) {
        UserDao ud = new UserDao();
        if (ud.userDao(name).equals(password)) {
            System.out.println("登录成功");
            return true;
        } else {
            System.out.println("密码或账号错误,登陆失败");
            return false;
        }

    }
}
